<?php
namespace Lettral\LetterBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
 
class LetterTypeForm extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('typeDest', 'choice', array('choices' => array('perso' => 'Personnelle', 'pro' => 'Professionnelle'), 'label' => "Type de lettre :"))
            ->add('confidentiel', 'choice', array('choices' => array('false' => 'Non', 'true' => 'Oui'), 'label' => "Confidentiel :"));
    }  
    
    public function getDefaultOptions(array $options) {
    	return array('data_class' => 'Lettral\LetterBundle\Entity\TypeLettre');
    }
    
    public function getName() {
        return 'letter_choose';
    }
}
